#include "book.h"
#include <iostream>
using namespace std;

Book::Book(int ID, string name, string author, string publishing_house) : ID(ID), name(name), author(author), publishing_house(publishing_house)
{
    this->state.first = 1;
};
int Book::get_ID()
{
    return this->ID;
}
string Book::get_name()
{
    return this->name;
}
string Book::get_author()
{
    return this->author;
}
string Book::get_publishing_house()
{
    return this->publishing_house;
}
bool Book::get_state()
{
    return this->state.first;
}
void Book::change_state()
{
    this->state.first = !(this->state.first);
}
void Book::change_state(string name)
{
    this->state.first = !(this->state.first);
    this->state.second = name;
}
void Book::print_message()
{
    // cout << this->ID << ' ' << this->name << ' ' << this->author << ' ' << this->publishing_house << ' ' << this->state.second << endl;
    cout << this->state.second;
}